package com.file;

import java.io.File;

public class FileSpace {

	public static void main(String[] args) {

		String path = "C:" + File.separator ;
		File file = new File(path);
		System.out.println(file.getTotalSpace());
		System.out.println(file.getFreeSpace());
		// 60020486144
		// 12459536384
		
		FileSpace fileSpace=new FileSpace();
		try {
		 Class<?> f= Class.forName("java.io.File");
		 System.out.println(f.getName());
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		
	}

}
